import Layout from '@/layout'

const fmsRouter = {
  path: '/fms',
  component: Layout,
  name: 'FMS',
  meta: {
    title: '财务',
    icon: 'user',
    roles: ['财务','admin']
  },
  children: [
    {
      path: 'total',
      name: 'Tree',
      component: () => import('@/views/fms/index'),
      meta: { title: '统计', icon: 'star' }
    },
    {
      path: 'electronicOrder',
      name: 'Tree',
      component: () => import('@/views/fms/order/index'),
      meta: { title: '订单列表', icon: 'star' }
    },
    {
      path: 'electronicOrderDetail',
      name: 'Tree',
      component: () => import('@/views/fms/order/detail'),
      meta: { title: '订单详情', icon: 'star' },
      hidden: true
    }
  ]
}

export default fmsRouter
